package com.example.evanproject.controller;

import com.example.evanproject.domain.Coursemodule;
import com.example.evanproject.service.impl.CoursemoduleServiceImpl;
import com.example.evanproject.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("courseModule")
public class CourseModuleController {

    @Autowired
    private CoursemoduleServiceImpl courseModuleService;
//    添加模块


/*参数为 scFid(章节id) moName(模块名)*/
    @RequestMapping("addcourseModule")
    public AjaxResult addcourseModule(Coursemodule courseModule){
  return AjaxResult.success(courseModuleService.addcourseModule(courseModule));
    }



}
